#!/bin/bash

mpstat 1 10 >output.dat

while read pid
do
 echo $pid

done < output.dat
